﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication2.Controllers
{

    [ApiController]
    [Route("[controller]")]
    public class HomeController : ControllerBase
    {
        [HttpGet]  // http://localhost:5000/Home
        public string Index()
        {

            return "hello index";
        }

        [HttpGet("index2")] // http://localhost:5000/Home/Index2
        public string Index2()
        {
            return "hello index2";
        }
    }
}
